import {
	createRouter,
	createWebHistory
} from 'vue-router'

const routes = [
	{
		path: '/login',
		component:()=>import('../views/loginView'),
		meta:{title:"用户登录"}
	},
	{
		path: '/',
		component:()=> import('../views/layout'),
		children: [{
				path: '',
				component: ()=>import('../views/indexView'),
				meta:{title:"首页",icon:''}
			},
			{
				path: 'index',
				component: ()=>import('../views/indexView'),
				meta:{title:"首页"}
			},
			{
				path: 'chinese/grade',
 				component: ()=>import('../views/chinese/grade/index'),
				meta:{title:"班级管理"}
			}
		]
	},
	{
		path: '/:pathMatch(.*)*',
		name: 'notfound',
		component: () => import('../views//page404')
	}
]

const router = createRouter({
	history: createWebHistory(process.env.BASE_URL),
	routes
})



export default router